<?php 
namespace Home\Controller;
use Think\Controller;
class NewsdetailiController extends Controller {
	public function newsdetaile(){
		$id = I('get.id');
		M('news') -> where(['id' => $id]) ->setInc('browse', 1);
		$this->display('News/newsdetaile');
	}
    public function newsdetailes(){
       $newsdetaile=M('news')->select();
       $this->ajaxReturn(array('data' =>$newsdetaile));
    }
    public function newsitemdetaile(){
    	$ids=I('get.id');
    	$newsitemdetaile=M('news')->where(['id'=>$ids])->select();
        $this->ajaxReturn(array('newsitemdetaile'=>$newsitemdetaile));
    }
}










